﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LotteryShow.aspx.cs" Inherits="FortuneHeaven.Web.Lottery.LotteryShow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>抽奖</title>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <style type="text/css">
        a
        {
            color: #62443A;
            text-decoration: none;
        }
        a:hover
        {
            color: #C50B0B;
            text-decoration: underline;
        }
        a img
        {
            border: 0;
        }
        #winnertable tr
        {
            line-height: 25px;
             height:25px;
            }
    </style>
    <script>
    onload = function () {
        DivScroll("winnerdiv", "winnertable", 12, 6, 27);
        DivScroll("joindiv", "jointable", 2, 1, 83);
    };
    function DivScroll(par,tab,co,movec,lineheight)
    {
        var Mar = document.getElementById(par);
        var child_div = document.getElementById(tab)

        var line = lineheight;
        var count = co;
        var picH = line *  movec; //移动高度
        var totalH = line * count;
        var scrollstep = 2; //移动步幅,越大越快
        var scrolltime = 20; //移动频度(毫秒)越大越慢
        var stoptime = 3000; //间断时间(毫秒)
        Mar.innerHTML += Mar.innerHTML;
        function start() {
            Mar.scrollTop += scrollstep;
            if (Mar.scrollTop >= totalH) {
                Mar.scrollTop = 0;
            }
            if (Mar.scrollTop % picH < scrollstep) {
                setTimeout(start, stoptime);
            } else {
                setTimeout(start, scrolltime);
            }
        }
        setTimeout(start, stoptime)
    }
    </script>
</head>
<body style="background: url(images/bg1.jpg) top center; margin: 0; padding: 0">
    <form id="form1" runat="server">
    <div style="width: 1000px; margin: 0 auto; font-size: 12px; color: #FFF;">
        <table width="1000" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="679" height="700" align="left" valign="top" style="padding-top: 200px">
                    <a href="LotteryRegister.aspx">
                    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600"
                        height="430">
                        <param name="movie" value="carousel_xml_zcool.com.cn.swf" />
                        <param name="quality" value="high" />
                        <param name="wmode" value="transparent" />
                        <param name="swfversion" value="8.0.35.0" />
                        <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
                        <param name="expressinstall" value="Scripts/expressInstall.swf" />
                        <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="carousel_xml_zcool.com.cn.swf"
                            width="600" height="430">
                            <!--<![endif]-->
                            <param name="quality" value="high" />
                            <param name="wmode" value="transparent" />
                            <param name="swfversion" value="8.0.35.0" />
                            <param name="expressinstall" value="Scripts/expressInstall.swf" />
                            <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
                            <div>
                                <h4>
                                    此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
                                <p>
                                    <a href="http://www.adobe.com/go/getflashplayer">
                                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                                            alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
                            </div>
                            <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                    </object>
                    </a>
                </td>
                <td width="321" align="left" valign="top" style="padding: 240px 0 0 15px; font-size: 12px;
                    color: #62443A;">
                    <table width="260" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="left" valign="top">
                                当前已有<strong style="color: #c30;"><asp:Literal ID="ltTotal" runat="server"></asp:Literal> </strong>人报名抽奖，报名人数越多，奖品越丰厚
                            </td>
                        </tr>
                    </table>
                    <div style=" height:115px;">
                    <table width="260" border="0" cellspacing="0" cellpadding="0" style="margin-top: 15px;
                        border: 1px solid #933; font-weight: bold; color: #C33;">
                        <tr style=" height:16px;">
                                <td width="40%">
                                    <strong>名单</strong>
                                </td>
                                <td width="33%">
                                    <strong>状态</strong>
                                </td>
                                <td width="27%">
                                    <strong>时间</strong>
                                </td>
                        </tr>
                        <tr>
                            <td colspan=3 align="left" valign="top" >
                                <div id="joindiv"  style=" height:83px; overflow:hidden">
                                <table id="jointable"  style=" height:84px; color: #62443A;" width="100%" border="0" cellspacing="2" cellpadding="0">
                                    <asp:Repeater ID="rpLotteryOrders" runat="server">
                                    <ItemTemplate>
                                    <tr>
                                        <td width="40%" height="25">
                                            <a href="#"><%# Eval("UserName") %></a>
                                        </td>
                                        <td width="33%">
                                            <%# Eval("UserName") == "" ? "" : "等待开奖"%>
                                        </td>
                                        <td width="27%">
                                             <%# (DateTime)Eval("RequestTime")!= DateTime.MinValue? Eval("RequestTime","{0:yyyy-MM-dd}"):"" %>
                                        </td>
                                    </tr>
                                    </ItemTemplate>
                                    </asp:Repeater>
                             
                                </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                    </div>
                    <table width="260" border="0" cellspacing="0" cellpadding="0" style="margin-top: 65px;
                        border: 1px solid #933; color: #62443A;">
                        <tr>
                            <td align="left" valign="top">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="40%">
                                            <strong>用户名</strong>
                                        </td>
                                        <td width="33%">
                                            <strong>奖品</strong>
                                        </td>
                                        <td width="27%">
                                            <strong>时间</strong>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td  align="left" valign="top">
                             <div  id="winnerdiv" style="overflow:hidden; height:170px;">
                               
                                <table id="winnertable" style=" height:172px;"  width="100%" border="0" cellspacing="2" cellpadding="0">
                                    <asp:Literal ID="ltWinList" runat="server"></asp:Literal>
                                </table>
                                
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table width="260" border="0" cellspacing="3" cellpadding="0">
                        <tr>
                            <td align="right" valign="top">
                               
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="50" align="center">
                    沪ICP备11037753号-1 客服电话:400-0630-818
                </td>
            </tr>
        </table>
        <h1>
            &nbsp;</h1>
    </div>
    </form>
    <script type="text/javascript">
        swfobject.registerObject("FlashID");
    </script>
</body>
</html>
